//
//  TestImageBrowserItem.m
//  ImageBrowserTest
//
//  Created by Marc Liyanage on 01.01.09.
//  Copyright 2009 Marc Liyanage <http://www.entropy.ch>. All rights reserved.
//

#import "TestImageBrowserItem.h"
#import <Quartz/Quartz.h>

@implementation TestImageBrowserItem


- (id)initWithUrl:(NSURL *)itemUrl {
	if (self = [super init]) {
		url = [itemUrl retain];
	}
	return self;
}


- (void)dealloc {
	[url release];
	[super dealloc];
}


# pragma mark IKImageBrowserItem protocol methods

- (NSString *)imageUID {
	return [url absoluteString];
}

- (NSString *)imageRepresentationType {
	return IKImageBrowserNSURLRepresentationType;
}

- (id)imageRepresentation {
	return url;
}



@end
